 <?php
/**
 * @name: indexcontroller.class.php
 * @version: 1.0
 * @package: PHP MVC Framework
 * @uses: Handles main index controllers
 * @copyright: MIT
 * @author Andrew Lowther
 */

class indexController extends baseController {

    public function index() {

        $this->registry->session->hello = 'Hey there!';

        // Set a template variable
        $this->registry->template->welcome = 'Welcome to Kill Ten Minutes';
        $this->registry->template->message = $this->registry->session->hello;

        // Load the index page
        $this->registry->template->show('index');

    }

}

?>
